home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / perl5 / Mail / Mailer / sendmail.pm < prev    next >
Encoding:
Text File  |  2008-07-29  |  781 b   |  27 lines

  1. # Copyrights 1995-2008 by Mark Overmeer <perl@overmeer.net>.
  2. #  For other contributors see ChangeLog.
  3. # See the manual pages for details on the licensing terms.
  4. # Pod stripped from pm file by OODoc 1.05.
  5. use strict;
  6.  
  7. package Mail::Mailer::sendmail;
  8. use vars '$VERSION';
  9. $VERSION = '2.04';
  10.  
  11. use base 'Mail::Mailer::rfc822';
  12.  
  13. sub exec($$$$)
  14. {   my($self, $exe, $args, $to, $sender) = @_;
  15.     # Fork and exec the mailer (no shell involved to avoid risks)
  16.  
  17.     # We should always use a -t on sendmail so that Cc: and Bcc: work
  18.     #  Rumor: some sendmails may ignore or break with -t (AIX?)
  19.     # Chopped out the @$to arguments, because -t means
  20.     # they are sent in the body, and postfix complains if they
  21.     # are also given on comand line.
  22.  
  23.     exec( $exe, '-t', @$args );
  24. }
  25.  
  26. 1;
  27.